package day04;

import java.lang.reflect.Array;
import java.util.Arrays;
import java.util.Random;

public class ex {
    public static void main(String[] args) {
        int [] arr = new int[4];
        //100以内的随机数
            for (int i =  0; i < arr.length;) {
                int suiji =  new Random().nextInt(100);
                if(suiji % 2 == 0){
                    arr[i] =suiji;
                    i++;
                }
            }
        System.out.println(Arrays.toString(arr));

    }
}
